package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("user")
public class User {
    //用户id值
    @TableId(value = "id" , type = IdType.ASSIGN_ID)
    private Long id;
    //用户名
    private String username;
    //密码
    @TableField(value = "password")
    private String password;
    //自我介绍
    private String headimg;

    @TableField(exist = false)
    private String online;
}
